package com.jws.battleship;
import java.util.ArrayList;

public abstract class NetworkInterface{
	private static NetworkInterface mNetworkInterface;
	
	public static synchronized NetworkInterface getInstance() throws Exception
	{
		if(mNetworkInterface == null)
		{
			throw new Exception();
		}
		return mNetworkInterface;
	}
	
	public static synchronized void setInstance(NetworkInterface networkInterface)
	{
		mNetworkInterface = networkInterface;
	}
	
	public abstract Person findOpponent();
	
	public abstract void letsBattle(Person person);//aka ready
		
	public abstract String shoot(Coordinate coordiante);
	
	public abstract void surrender(Person person);
	
	public abstract void sendShipsCoordinate(ArrayList<Ship> ships);
	

}
